﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200063D RID: 1597
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetAllSaveRaidScRsp : IMessage<GetAllSaveRaidScRsp>, IMessage, IEquatable<GetAllSaveRaidScRsp>, IDeepCloneable<GetAllSaveRaidScRsp>, IBufferMessage
	{
		// Token: 0x170014AC RID: 5292
		// (get) Token: 0x0600481F RID: 18463 RVA: 0x000C6BFD File Offset: 0x000C4DFD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetAllSaveRaidScRsp> Parser
		{
			get
			{
				return GetAllSaveRaidScRsp._parser;
			}
		}

		// Token: 0x170014AD RID: 5293
		// (get) Token: 0x06004820 RID: 18464 RVA: 0x000C6C04 File Offset: 0x000C4E04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetAllSaveRaidScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170014AE RID: 5294
		// (get) Token: 0x06004821 RID: 18465 RVA: 0x000C6C16 File Offset: 0x000C4E16
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetAllSaveRaidScRsp.Descriptor;
			}
		}

		// Token: 0x06004822 RID: 18466 RVA: 0x000C6C1D File Offset: 0x000C4E1D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetAllSaveRaidScRsp()
		{
		}

		// Token: 0x06004823 RID: 18467 RVA: 0x000C6C30 File Offset: 0x000C4E30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetAllSaveRaidScRsp(GetAllSaveRaidScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.raidDataList_ = other.raidDataList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06004824 RID: 18468 RVA: 0x000C6C66 File Offset: 0x000C4E66
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetAllSaveRaidScRsp Clone()
		{
			return new GetAllSaveRaidScRsp(this);
		}

		// Token: 0x170014AF RID: 5295
		// (get) Token: 0x06004825 RID: 18469 RVA: 0x000C6C6E File Offset: 0x000C4E6E
		// (set) Token: 0x06004826 RID: 18470 RVA: 0x000C6C76 File Offset: 0x000C4E76
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170014B0 RID: 5296
		// (get) Token: 0x06004827 RID: 18471 RVA: 0x000C6C7F File Offset: 0x000C4E7F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<RaidData> RaidDataList
		{
			get
			{
				return this.raidDataList_;
			}
		}

		// Token: 0x06004828 RID: 18472 RVA: 0x000C6C87 File Offset: 0x000C4E87
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetAllSaveRaidScRsp);
		}

		// Token: 0x06004829 RID: 18473 RVA: 0x000C6C98 File Offset: 0x000C4E98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetAllSaveRaidScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.raidDataList_.Equals(other.raidDataList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600482A RID: 18474 RVA: 0x000C6CE8 File Offset: 0x000C4EE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.raidDataList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600482B RID: 18475 RVA: 0x000C6D35 File Offset: 0x000C4F35
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600482C RID: 18476 RVA: 0x000C6D3D File Offset: 0x000C4F3D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600482D RID: 18477 RVA: 0x000C6D48 File Offset: 0x000C4F48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.raidDataList_.WriteTo(ref output, GetAllSaveRaidScRsp._repeated_raidDataList_codec);
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600482E RID: 18478 RVA: 0x000C6D98 File Offset: 0x000C4F98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.raidDataList_.CalculateSize(GetAllSaveRaidScRsp._repeated_raidDataList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600482F RID: 18479 RVA: 0x000C6DEC File Offset: 0x000C4FEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetAllSaveRaidScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.raidDataList_.Add(other.raidDataList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06004830 RID: 18480 RVA: 0x000C6E39 File Offset: 0x000C5039
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06004831 RID: 18481 RVA: 0x000C6E44 File Offset: 0x000C5044
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 66U)
				{
					if (num != 80U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.raidDataList_.AddEntriesFrom(ref input, GetAllSaveRaidScRsp._repeated_raidDataList_codec);
				}
			}
		}

		// Token: 0x04001CB0 RID: 7344
		private static readonly MessageParser<GetAllSaveRaidScRsp> _parser = new MessageParser<GetAllSaveRaidScRsp>(() => new GetAllSaveRaidScRsp());

		// Token: 0x04001CB1 RID: 7345
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001CB2 RID: 7346
		public const int RetcodeFieldNumber = 10;

		// Token: 0x04001CB3 RID: 7347
		private uint retcode_;

		// Token: 0x04001CB4 RID: 7348
		public const int RaidDataListFieldNumber = 8;

		// Token: 0x04001CB5 RID: 7349
		private static readonly FieldCodec<RaidData> _repeated_raidDataList_codec = FieldCodec.ForMessage<RaidData>(66U, RaidData.Parser);

		// Token: 0x04001CB6 RID: 7350
		private readonly RepeatedField<RaidData> raidDataList_ = new RepeatedField<RaidData>();
	}
}
